export default {
  namespaced: true,
  state: {
    searchkeyList: [],
    searchDatas: {}
  },
  mutations: {
    SET_SEARCHKEY_LIST: (state, list) => {
      state.searchkeyList = list
    },
    STE_SEARCH_DATAS: (state, data) => {
      state.searchDatas = data
    }
  },
  actions: {
    setSearchkeyList({
      commit
    }, searchkeyList) {
      commit('SET_SEARCHKEY_LIST', searchkeyList);
    },
    setSearchDatas({
      commit
    }, form) {
      commit('STE_SEARCH_DATAS', form);
    }
  },
  getters: {
    data: state => state.searchDatas
  }
}
